import request from '../request'

export default {
  login(user) {
    return request({
      url: '/api/core/user_login',
      method: 'post',
      data: user,
    })
  },

  send(email) {
    return request({
      url: '/api/cms/send/' + email,
      method: 'get',
    })
  },

  regiest(user , code) {
    return request({
      url: '/api/core/add_user/'+code,
      method: 'post',
      data: user,
    })
  },
}
